const Koa = require('koa');
const bodyParser = require('koa-bodyparser');
const router = require('./app/router')

const app = new Koa();
const port = 3000;
app.use(bodyParser());
app.use(router);

app.listen(port, () => console.log(`server listening on http://localhost:${port}`));